package com.ophiux.member.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@ApiModel("会员名片信息表  --  返回实体")
public class MemberCardDTO {

	private Integer id;

	@ApiModelProperty("会员id")
	private Integer memberId;

	@ApiModelProperty("字段编码")
	private String fieldCode;

	@ApiModelProperty("字段名称")
	private String fieldName;

	@ApiModelProperty("字段值")
	private String fieldValue;

	@ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private LocalDateTime createdAt;

	@ApiModelProperty("更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private LocalDateTime updatedAt;

}
